package dbaproj;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.SQLException;
import java.util.Properties;
import oracle.jdbc.pool.OracleDataSource;

public class Server {
	private OracleDataSource datasource;
	private Properties properties;

	public static void main(String[] args) {
		
	}
	
	private void setUpDataSource() {
		try {
			datasource = new OracleDataSource();
			properties = new Properties();
			properties.load(new FileInputStream("db.properties"));
			datasource.setURL(properties.getProperty("URL"));
			datasource.setUser(properties.getProperty("user"));
			datasource.setPassword(properties.getProperty("pass"));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (SQLException e) {
			e.printStackTrace();
		}
		
	}

}
